let proxyObj = {}

proxyObj['/'] = {
    //websocket
    ws: false,
    target: 'http://localhost:8099',
    changeOrigin: true,
    //重写请求路径
    pathReWrite: {
        '^/': '/'
    }
}

module.exports = {
    devServer: {
        host: 'localhost',
        port: '8080',
        proxy: proxyObj
    }
}
